/*
 * @Description:
 * @Version: 1.0
 * @Autor: wangmeng
 * @Date: 2024-01-18 13:49:57
 * @LastEditors: wamgmeng
 * @LastEditTime: 2024-01-19 20:22:54
 */
import { createApp, reactive } from "vue";
import "./style/index.scss";
import {
  ElButton,
  ElInput,
  ElSelect,
  ElInputNumber,
  ElTabs,
  ElTable,
  ElTableColumn,
  ElDialog,
  ElDatePicker,
  ElConfigProvider,
  ElPagination,
  ElForm,
  ElFormItem,
  ElIcon,
  ElMessage,
  ElMessageBox,
  ElCalendar,
  ElMenu,
  ElMenuItem,
  ElUpload,
  ElProgress,
} from "element-plus";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import zhCn from "element-plus/dist/locale/zh-cn.mjs";
import App from "./App.vue";
import router from "./router";
// import "@/assets/js/rem.js";
import "@/assets/css/reset.css";
import "@/assets/css/common.scss";
import "@/assets/font/font.css";
import "@/assets/iconfont/iconfont.css";

const app = createApp(App);

// 注册所有图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

app
  .use(ElButton)
  .use(ElInput)
  .use(ElSelect)
  .use(ElInputNumber)
  .use(ElTabs)
  .use(ElTable)
  .use(ElTableColumn)
  .use(ElDialog)
  .use(ElDatePicker)
  .use(ElForm)
  .use(ElFormItem)
  .use(ElConfigProvider, { locale: zhCn })
  .use(ElPagination)
  .use(ElIcon)
  .use(ElMessage)
  .use(ElMessageBox)
  .use(ElCalendar)
  .use(ElMenu)
  .use(ElMenuItem)
  .use(ElUpload)
  .use(ElProgress)
  .use(router)
  .mount("#app");
